/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.user.mapstruct;

import com.pig4cloud.pigx.user.entity.UserApiKeyLockDetail;
import com.pig4cloud.pigx.user.vo.UserApiKeyLockDetailLockVO;
import com.pig4cloud.pigx.user.vo.UserApiKeyLockDetailUnlockVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * UserApiKeyLockDetailStruct
 *
 * @since 2022/10/28 17:01
 */
@Mapper
public interface UserApiKeyLockDetailStruct {

	UserApiKeyLockDetailStruct INSTANCE = Mappers.getMapper(UserApiKeyLockDetailStruct.class);

	/**
	 * UserApiKeyLockDetail -> UserApiKeyLockDetailLockVO
	 *
	 * @param entity 实体
	 * @return {@link UserApiKeyLockDetailLockVO}
	 * @since 2022/10/28 16:28
	 */
	UserApiKeyLockDetailLockVO entity2LockVO(UserApiKeyLockDetail entity);

	/**
	 * List<UserApiKeyLockDetail> -> List<UserApiKeyLockDetailLockVO>
	 *
	 * @param list list
	 * @return {@link UserApiKeyLockDetailLockVO}
	 * @since 2022/10/28 16:28
	 */
	List<UserApiKeyLockDetailLockVO> list2LockVOList(List<UserApiKeyLockDetail> list);

	/**
	 * UserApiKeyLockDetail -> UserApiKeyLockDetailUnlockVO
	 *
	 * @param entity 实体
	 * @return {@link UserApiKeyLockDetailUnlockVO}
	 * @since 2022/10/28 16:28
	 */
	UserApiKeyLockDetailUnlockVO entity2UnlockVO(UserApiKeyLockDetail entity);

	/**
	 * List<UserApiKeyLockDetail> -> List<UserApiKeyLockDetailUnlockVO>
	 *
	 * @param list list
	 * @return {@link UserApiKeyLockDetailUnlockVO}
	 * @since 2022/10/28 16:28
	 */
	List<UserApiKeyLockDetailUnlockVO> list2UnlockVOList(List<UserApiKeyLockDetail> list);
}
